package com.xin.di.uav.applet.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xin.di.uav.po.Bill;
import com.xin.di.uav.common.request.order.BillAddRequest;
import com.xin.di.uav.common.utils.Rs;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author LTQ
 * @since 2023-07-03
 */
public interface IBillService extends IService<Bill> {
    /**
     * 添加
     *
     * @param billAddRequest
     */
    void add(BillAddRequest billAddRequest);

    /**
     * @param tcWaybillNo
     * @param payStatus
     * @return
     */
    Bill getByTcWaybillNo(String tcWaybillNo, Integer payStatus);


    /**
     * 通过订单号和type类型获取
     *
     * @param tcWaybillNo
     * @param payStatus
     * @return
     */
    Bill getByTcWaybillNoAndType(String tcWaybillNo, Integer payStatus);

    Rs<Boolean> billSettlement(BillAddRequest billAddRequest);
}
